package com.yp.lession52.aop;

import org.springframework.aop.ThrowsAdvice;

public class MyExceptiion implements ThrowsAdvice {
public void afterThrowing(Exception ex){
        System.out.println("异常增强,日志的记录");
        System.out.println("异常信息:"+ex.getMessage());
    }

}
